<template>
  <div id="app">
    <header>
      <!-- 装组件 -->
      <div id="nav">
        <router-link to="/move">动态</router-link> 
        <router-link to="/answer">回答</router-link>
        <router-link to="/ask">文章</router-link>
        <router-link to="/article">提问</router-link>
      </div>
    </header>
    <main>
      <router-view />
    </main>
    
  </div>
</template>

<style lang="scss">
// #app {
//   font-family: Avenir, Helvetica, Arial, sans-serif;
//   -webkit-font-smoothing: antialiased;
//   -moz-osx-font-smoothing: grayscale;
//   text-align: center;
//   color: #2c3e50;
// }

// #nav {
//   padding: 30px;

//   a {
//     font-weight: bold;
//     color: #2c3e50;

//     &.router-link-exact-active {
//       color: #42b983;
//     }
//   }
// }

* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
}
a{
  text-decoration: none;
}
#app{
  display: flex;
  flex-direction: column;
  header{
    display: flex;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #ccc;
    #nav{
      a{
      display: inline-block;
      width: 90px;
      height: 50px;
      text-align: center;
      line-height: 50px;
      margin-left: 3px;
    }
    }
    .router-link-active {
      border-bottom: 2px solid #000;
    }
  }
  main{
    flex: 1;
    background-color: antiquewhite;
  }
}
</style>
